﻿CREATE TABLE [dbo].[Work]
(
	[id] INT NOT NULL PRIMARY KEY IDENTITY, 
    [startTime] DATETIME NOT NULL, 
    [idDataSet] INT NOT NULL, 
    [param] TEXT NOT NULL, 
    [name] TEXT NOT NULL, 
    [note] TEXT NULL, 
    [state] INT NOT NULL, 
    CONSTRAINT [FK_Work_ToTable] FOREIGN KEY ([idDataSet]) REFERENCES [DataSet]([id])
)
